<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}>
<script type="text/javascript">
$(function(){
	$("#myForm").submit(function(){
		return queding('是否保存设置？','input');
	})
	$("#test_email_button").click(function(){
		var self = $(this);
		self.val("正在发送");
		self.attr("disabled");
		var values = new Array(); 
		$("input").each(function(index){
			values[index] = $(this).val();
		})
		$.post(
			'set.php?action=test_email',
			{values:values},
			function(data){
				if(data=='1') var msg = "发送成功";
				if(data=='0') var msg = "发送失败";
				alert(msg);
				self.val("发送");
				self.removeAttr("disabled");
			}
		)
	})
})
</script>
</head>

<body>
<div class="box">
<div style="background:url(images/mainbj.jpg) repeat-x; line-height:31px; height:31px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td width="41" align="center">
<img src="images/biao1.jpg" /></td>
<td><strong>当前位置</strong>：网站设置 &gt; <{$title}></td>
</tr></table>
</div>

<form action="" method="post" id="myForm">
<table class="lefttab" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;<{$title}></div>
</td></tr>
<{foreach item=loop from=$config_base_arr}>
<tr>
  <td align="right"><strong><{$loop.title}></strong>：</td>
  <td width="673" align="left">
	<input type="text" id="<{$loop.key}>" name="<{$loop.key}>" value="<{$loop.value}>" class="input"/>
  </td>
</tr>
<{/foreach}>
<{if $op=='email'}>
<tr>
  <td align="right"><strong>测试邮件<span style="color:red;">(多个收件人用“;”隔开)</span></strong>：</td>
  <td width="673" align="left">
	<input type="text" id="test_email" value="" class="input"/>
	<input type="button" id="test_email_button" value="发送"/>
  </td>
</tr>
<{/if}>
<tr><td height="50px" colspan="2"> 
	<p>&nbsp;</p>
    <p align="left" style="margin-left:100px;">
      &nbsp;&nbsp;<input type="submit" name="submit" value="保存" class="inp"/>
      </p>    <p>&nbsp;</p></td>
  </tr>
</table>
</form>

</div>
</body>
</html>
